package com.springcloud.eurekaticket.controller;

import com.springcloud.eurekaticket.controller.service.ITicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TicketController {


    @Autowired
    ITicketService iTicketService;
    @GetMapping("/ticket")
    public String ticket(){

       return  iTicketService.getTicket();
    }
}
